package com.cp.service.impl;

import com.cp.dao.AdjudgmentWordMapper;
import com.cp.repository.AdjudgmentWord;
import com.cp.service.AdjudgmentWordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdjudgmentWordServiceImpl implements AdjudgmentWordService {

	@Autowired
	AdjudgmentWordMapper adjudgmentWordMapper;


	@Override
	public List<AdjudgmentWord> getByRelationWordByConvictionIdAndClassRelationIds(Integer convictionId, String classRelationList) {
		return adjudgmentWordMapper.getByRelationWordByConvictionIdAndClassRelationIds(convictionId, classRelationList);
	}

	@Override
	public List<AdjudgmentWord> getByConvictionIdAndClassRelationId(Integer convictionId, Integer classRelationId) {
		return adjudgmentWordMapper.getByRelationWordByConvictionIdAndClassRelationId(convictionId, classRelationId);
	}
}

